<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::post('/admin/user/login', 'App\\Http\\Controllers\\Admin\\UserController@login');
Route::post('/admin/user/logout', 'App\\Http\\Controllers\\Admin\\UserController@logout');
Route::namespace('App\\Http\\Controllers\\Admin')->prefix('admin')->group(function () {
    Route::get('/user/info', 'UserController@info');
    Route::post('/cod/import', 'ImportController@codData');
    Route::post('/pickup_orders/import', 'ImportController@pickupOrdersData');
    Route::post('/return_data/import', 'ImportController@returnData');
//    Route::post('/user/selfSaveInfo', 'UserController@selfSaveInfo');
});
